﻿using APIService.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace APIService.Repository
{
    public class SecurityUserRepository
    {
        private EFEntities db = new EFEntities();
        public IQueryable<SecurityUser> SecurityUsers
        {
            get { return db.SecurityUsers; }
        }

        public SecurityUser getSecurityUser(string userAccount)
        {
            SecurityUser securityUser = db.SecurityUsers.FirstOrDefault(t => t.UserAccount.Contains(userAccount));
            return securityUser;
        }
    }
}